package com.ima.web.common.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {

	@RequestMapping(value="/login",method=RequestMethod.GET)
	public String login(@RequestParam(value="error",defaultValue="") String error){
		return "login";
	}
	
	@RequestMapping("/logout")
	public String logout(String previousPage){
		
		return "logout";
	}
}
